﻿@Html.DevExpress().ReportViewer(settings =>
{
    // The following settings are necessary for a Report Viewer. 
    settings.Name = "reportViewer1";
    settings.Report = new EnterpriseFund.Views.AllowanceFileAudit.print();
    settings.Report.DataSource = ViewData["data"] as System.Data.DataSet;
    settings.Report.PaperKind = System.Drawing.Printing.PaperKind.A4;
    settings.PrintUsingAdobePlugIn = false;
    
    settings.Width = System.Web.UI.WebControls.Unit.Percentage(99);
    
    // Callback and export route values specify corresponding controllers and their actions. 
    // These settings are necessary as well. 
    settings.ClientSideEvents.BeginCallback = "function(s,e){OnBeginCallback2(s,e)}";
    settings.CallbackRouteValues = new { Controller = "AllowanceFileAudit", Action = "AllowanceFileAuditPrintPartial" };
   
    //settings.ExportRouteValues = new { Controller = "Print", Action = "FwmmszbtReportViewer" };
}).GetHtml()
